#类方法可以改变类的属性
class Apple(object):          
    count = 0                   
    def add_one(self):         
        self.count = 1         
    @classmethod
    def add_two(cls):
        cls.count = 2          

